package b2.config
{
	public class DropItemConfig
	{
		//index可能的所有值
		//金宝箱
		public static const GOLD_BOX:int = 0;
		//生命回复
		public static const HP:int = 1;
		//能量回复
		public static const EP:int = 2;
		//攻击增强
		public static const AP_PLUS:int = 3; 
		//暴击率增加
		public static const CA_RATIO_PLUS:int = 4;
		//增加生命
		public static const LIFE_PLUS:int = 5;
		//无敌
		public static const INVULNERABLE:int = 6;
		//炸弹
		public static const BOMB:int = 7;
		//定身
		public static const MOVE_STOP:int = 8;
		//头盔
		public static const HELMET:int = 9;
		//破宝箱
		public static const WOOD_BOX:int = 10;
		//银宝箱
		public static const SILVER_BOX:int = 11;
		//铜宝箱
		public static const COPPER_BOX:int = 12;
		//英雄之证
		public static const HERO_VERT:int = 13;
		//石油
		public static const OIL_BOX:int = 14;
		//经验
		public static const EXP_BOX:int = 15;
		//荣誉
		public static const HONOUR:int = 16;
		//物品索引
		public var index:int;
		//物品名字
		public var name:String;
		//物品图标
		public var iconImage:String;
		//持续时间（秒）
		public var duration:int;
		
		public function DropItemConfig(itemXML:XML)
		{
			index = itemXML.index;
			name = itemXML.name;
			iconImage = itemXML.iconImage;
			duration = itemXML.duration;
		}

	}
}